Auto merge of #1702 - alexcrichton:fix-traverse-build-deps, r=brson
authorbors <bors@rust-lang.org>
Wed, 10 Jun 2015 17:28:45 +0000 (17:28 +0000)
committerbors <bors@rust-lang.org>
Wed, 10 Jun 2015 17:28:45 +0000 (17:28 +0000)
It looks like the recent restructuring into an O(N) pass had a regression
(reported in #1695) where deps-of-deps didn't have their build script arguments
propagated upwards. This fixes the caching logic to take into account the
profile as part of the key to ensure that we traverse targets twice if
necessary.

Closes #1695


Trivial merge